<div class="page has-sidebar-left height-full">
    <header class="blue accent-3 relative nav-sticky">
        <div class="container-fluid text-white">
            <div class="row p-t-b-10 ">
                <div class="col">
                    <h4>
                        <i class="icon-user-secret"></i>
                        管理员
                    </h4>
                </div>
            </div>
            <div class="row">
                <ul class="nav responsive-tab nav-material nav-material-white">
                  
				   <li><a class="nav-link " href="<?php echo url('admin/index'); ?>" role="tab" ><i class="icon icon-bars"></i>管理员列表</a></li>
                  <li class="float-right"><a class="nav-link active" href="<?php echo url('admin/add'); ?>"><i class="icon icon-plus-circle"></i> 新增管理</a></li>
                  
                </ul>
              
              <!--右侧
                <a class="btn-fab fab-right btn-primary" data-toggle="control-sidebar">
                    <i class="icon icon-menu"></i>
                </a>
              -->
              
            </div>
        </div>
    </header>
    <div class="container-fluid relative animatedParent animateOnce">
        <div class="tab-content pb-3">
  
            <!--Yesterday Tab Start-->
            <div class="tab-pane animated fadeInUpShort go active show" >
                   <div class="animatedParent animateOnce">
                      <div class="container-fluid my-3">
                          <div class="row">
                              <div class="col-md-7">
                                  <div class="card">
                                      <div class="card-body b-b">
                                          <h4>新增管理员</h4><hr><br>
                                          <form class="form-material"  role="form" id="form1" method="post" action="{:url('admin/add')}" >
                                              <!-- Input -->
                                              <div class="body">

                                                  <h6>管理员账户</h6>
                                                  <div class="row clearfix">
                                                      <div class="col-sm-12">
                                                          <div class="form-group">
                                                              <div class="form-line">
                                                                  <input type="text" class="form-control"  name="name" data-validate="required,minlength[4],maxlength[18]" data-message-required="账号必填,长度最小为4个字符,最大为18个字符" placeholder="长度最小为4个字符,最大为18个字符" required >
                                                              </div>
                                                          </div>

                                                      </div>
                                                  </div>


                                                
                                                
                                                  <h6>密码 </h6>
                                                
                                                   <div class="row clearfix">
                                                      <div class="col-sm-12">
                                                          <div class="form-group">
                                                              <div class="form-line">
                                                                  <input type="password" class="form-control"  id="password" name="password" data-validate="required,minlength[4],maxlength[18]"  data-message-required="密码必填,长度最小为4个字符,最大为18个字符" placeholder="长度最小为4个字符,最大为18个字符" required>
                                                              </div>
                                                          </div>

                                                      </div>
                                                  </div>  
                                                
                                                
                                                  <h6>确认密码 </h6>
                                                
                                                   <div class="row clearfix">
                                                      <div class="col-sm-12">
                                                          <div class="form-group">
                                                              <div class="form-line">
                                                                  <input type="password" class="form-control"  name="_password" data-validate="required,minlength[4],equalTo[#password],maxlength[18]" data-message-required="确认密码必填,长度最小为4个字符,最大为18个字符,并与密码一致" placeholder="长度最小为4个字符,最大为18个字符,并与密码一致" >
                                                              </div>
                                                          </div>

                                                      </div>
                                                  </div>

                                                
                                              </div>
                                              <!-- #END# Input -->
                                              <button type="submit" class="btn btn-primary">确认新增</button>
            								    <button type="reset" class="btn btn-white">重置</button>
                                          </form>
                                        
                                      </div>
                                    
                                    

                                    


                                  </div>
                              </div>
                              <div class="col-md-5">
                                  <h3>管理员帮助</h3>
                                  <hr>
                                  <p>新增管理员仅做辅助管理<br>一切操作还是以ID为1的超级管理员为主</p>

                                
                                
                                
                                  <hr>
                                  <h4 class="mt-5">未完待续</h4>
                                  <a href="#" target="_blank" class="btn btn-outline-primary btn-xs">Perfect Network Service</a>
                                
                                
                              </div>
                          </div>
                      </div>
                  </div>						
            </div>

        </div>
    </div>
</div>




{$code=='err1'?'
<div class="col-md-6">
    <div class="alert alert-danger" id="alert" style="position:fixed;right:0px;bottom:0px;  width: 350px">
        <button type="button" class="close" data-dismiss="alert">
            <span aria-hidden="true">×</span>
            <span class="sr-only">Close</span>
        </button>
        <strong> 糟糕 !</strong> 添加失败 .用户已存在
        .请重新添加
    </div>
</div>


':''}

{$code=='err2'?'
<div class="col-md-6">
    <div class="alert alert-danger" id="alert" style="position:fixed;right:0px;bottom:0px;  width: 350px">
        <button type="button" class="close" data-dismiss="alert">
            <span aria-hidden="true">×</span>
            <span class="sr-only">Close</span>
        </button>
        <strong> 糟糕 !</strong> 添加失败
        .请重新添加
    </div>
</div>

':''}
<script>
    setTimeout("$('#alert').fadeOut(1000)",2000)
</script>